<?php

namespace Database\Factories;

use App\Models\UserVisit;
use Illuminate\Database\Eloquent\Factories\Factory;

class UserVisitFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = UserVisit::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(1, 500),
            'url' => $this->faker->numberBetween(10000000000, 9999999999),
            'ip' => $this->faker->numberBetween(1000000000, 999999999999),
            'stay_time' => $this->faker->numberBetween(1, 10000),
            'channel_type' => $this->faker->text(15),
            'province' => $this->faker->text(10),
            'content' => $this->faker->text(10),
        ];
    }
}
